package com.ruoyi.service.impl;

import com.ruoyi.domain.RequestLog;
import com.ruoyi.mapper.RequestLogMapper;
import com.ruoyi.service.IRequestLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * TODO
 *
 * @author chenchuan2
 * @date 2023-05-23 13:54:33
 */
@Service
@Slf4j
public class RequestLogServiceImpl implements IRequestLogService {
    @Autowired
    private RequestLogMapper requestLogMapper;

    @Override
    public void recordLog(RequestLog requestLog) {
        requestLog.setCreateTime(new Date());
        requestLogMapper.insert(requestLog);
    }
}
